// #ifdef MP-BAIDU
const envEnum = {
	development: 'development',
	trial: 'trial',
	production: 'production'
}
const res = swan.getEnvInfoSync();
const env = res.env;
const curEnv = envEnum[env];
// #endif
// #ifdef MP-WEIXIN
const envEnum = {
	develop: 'development',
	trial: 'trial',
	release: 'production'
}
const res = wx.getAccountInfoSync();
const env = res.miniProgram.envVersion;
const curEnv = envEnum[env];
// #endif
// 配置文件
const host = {
	development: {
		// api: 'https://wddev-bookapi.book118.com',
		api: 'https://dev-api.book118.com',
		upload: 'https://api.book118.com',
		// openapi: 'https://openapi-dev.book118.com'
		openapi: 'http://lp.api.book118.com:8080',
		max: 'https://p.book118.com'
	},
	trial: {
		api: 'https://pubapi.book118.com',
		upload: 'https://api.book118.com',
		openapi: 'https://pub-openapi.book118.com',
		max: 'https://p.book118.com'
	},
	production: {
		api: 'https://api.book118.com',
		upload: 'https://api.book118.com',
		openapi: 'https://openapi.book118.com',
		max: 'https://max.book118.com'
	}
}
// const CURENV = 'development';//开发版
const CURENV = 'trial'; //体验版
// const CURENV = 'production';//线上版
const config = {
	// 当前环境
	env: curEnv,
	host: host[CURENV],
	title: '知海行家',
	app: 'knowledge_MP',
	file: {
		uploadSize: 5
	},
	// 客服联系方式
	customer: {
		mobile: '400-0500-739',
		admin: '2850308160',
		qq_operate: '2850308155', //运营QQ
		qq_product: '2850308155', //产品QQ群
		qq_group: '280706131', //QQ群
	},
	// 协议等地址
	article: {
		public: `https://mp.weixin.qq.com/s/l-W-Kqtu9l1GhCUlmzlCdg`, //公众号
		task: `${host[CURENV].max}/college/category30/article748.html`, // 悬赏须知
		orders: `${host[CURENV].max}/college/category30/article748.html`, //接单须知
		serverInfo: `${host[CURENV].max}/college/category30/article714.html`, // 服务信息展示说明
		serverType: `${host[CURENV].max}/college/category30/article715.html`, //服务分类
		serverKeyWord: `${host[CURENV].max}/college/category30/article716.html`, //服务关键词
		booth: `${host[CURENV].max}/college/category30/article710.html`, //推广展位
		skill: `${host[CURENV].max}/college/category30/article711.html` //收益技巧
	},
	// 异常图片地址配置
	errorImage: {
		avator: '',
		img: ''
	}
}
export default config;
